package cn.wolfcode.rbac.service;

import cn.wolfcode.rbac.domain.Employee;
import cn.wolfcode.rbac.domain.Permission;
import cn.wolfcode.rbac.domain.Role;
import cn.wolfcode.rbac.qo.RoleQo;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author xiahuihui
 * #Description Role
 * #Date: 2022/7/2 13:49
 */
public interface RoleService {
    //查询所有角色
    public List<Role> findRoleAll();

    //根据条件分页查询
    public PageInfo<Role> findByPage(RoleQo qo);

    //查询所有权限
    public List<Permission> findPermissionAll();

    //添加角色
    public void save(Role role, Long[] permissionIds);

    //删除角色
    public void delete(Role role);

    //根据主键id查询角色
    public Role findById(Long id);
}